/**
 */
public class User {

  Long id
  String firstname
  String lastname

  static belongsTo = Account

  static def constraints = {
    id(blank: false, unique: true)
    firstname(size: 1..50, blank: false)
    lastname(size: 1..50, blank: false)
  }

  public String encodeAsHTML() {
    return firstname + "&nbsp;" + lastname
  }
}
